<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>后盾人</title>
  </head>
  <body></body>
  <script>
    // let array = ["hdcms", "houdunren"];
    // let vars = array.shift();
    // console.log(vars);
    // let length = array.unshift("后盾人");
    // console.log(length);
    // let vars = array.pop(); // push
    // console.log(vars);
    // console.table(array);
    // console.log(Array(5).fill("后盾人"));
    // console.log([1, 2, 3, 4].fill("后盾人", 1, 3));
    let arr = [1, 2, 3];
    arr.push("hdcms", "shop");
    console.table(arr);
  </script>
</html>
